﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Wolf Lai
 *      Date:           2013/2/19 星期二 23:55:32
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sector7.Framework.Core;
using System.Runtime.Serialization;

namespace Sector7.Framework.EntityType
{
    /// <summary>
    /// 数据元实体
    /// </summary>
    [Serializable()]
    [DataContract]
    public class S7_DataElement : EntityBase
    {
        #region Accessor
        /// <summary>
        /// 获取或设置数据元编号
        /// </summary>
        [DataMember]
        public string ElementId { get; set; }

        /// <summary>
        /// 获取或设置数据元名称
        /// </summary>
        [DataMember]
        public string ElementName { get; set; }

        /// <summary>
        /// 获取或设置描述信息
        /// </summary>
        [DataMember]
        public string ElementDescription { get; set; }

        /// <summary>
        /// 获取或设置数据格式
        /// </summary>
        [DataMember]
        public string ElementFormat { get; set; }

        /// <summary>
        /// 获取或设置值类型编号
        /// </summary>
        [DataMember]
        public int TypeId { get; set; }

        /// <summary>
        /// 获取或设置值域编号
        /// </summary>
        [DataMember]
        public string DomainId { get; set; }

        /// <summary>
        /// 获取或设置数据分组编号
        /// </summary>
        [DataMember]
        public int GroupId { get; set; }

        /// <summary>
        /// 获取或设置值类型
        /// </summary>
        [DataMember]
        public S7_ValueType ValueType { get; set; }

        /// <summary>
        /// 获取或设置允许值域
        /// </summary>
        [DataMember]
        public S7_ValueDomain ValueDomain { get; set; }
        #endregion
    }
}
